#!/usr/bin/env bash

curl -X POST -H "Content-Type:application/json" \
-d '{"wifiId": "5fad31c3316744b3a03b84af19632823", "cbcEnable": false, "payload": "ddd"}' \
"http://localhost:8090/ac-julink-warehouse/cipherWithDKey"


curl -X POST -H "Content-Type:application/json" \
-d '{"subDomain": "24", "deviceId": "8650011000100010001000000244db09b200", "publicKey": "8e4b2f6f5fc5e764c38aba5f57a1fd04", "batchCode": "edwin1987"}' \
"http://localhost:8090/test/createOne"

curl -X POST -H "Content-Type:application/json" \
-d '8650011000100010001000000244db09b200' \
"http://localhost:8090/test/retriveByWifiId"


curl -X POST -H "Content-Type:application/json" \
-d '{"domain": "9", "subDomain": "2", "batchCode": "edwin1987", "devices": [{"wifiId": "8650011000100010001000000244db09b221", "publicKey": "8e4b2f6f5fc5e764c38aba5f57a1fd04"}, {"wifiId": "8650011000100010001000000244db09b222", "publicKey": "8e4b2f6f5fc5e764c38aba5f57a1fd06"}, {"wifiId": "8650011000100010001000000244db09b223", "publicKey": "8e4b2f6f5fc5e764c38aba5f57a1fd08"}]}' \
"http://localhost:8090/ac-julink-warehouse/registerDevices"

curl -X POST -H "Content-Type:application/json" \
-d '333' \
"http://localhost:8090/test1/select"

curl -X POST -H "Content-Type:application/json" \
-d '{"domainId":"11"}' \
"http://localhost:8090/ac-julink-warehouse/createSqlTable"

curl -X POST -H "Content-Type:application/json" \
-d '{"developer_id": 333, "description": "444"}' \
"http://localhost:8090/test/createOne"

curl -X POST -H "Content-Type:application/json" \
-d '{"developerId": 443, "name": "edwin711", "description": "lala"}' \
"http://localhost:8090/platform/createProject"

curl -X POST -H "Content-Type:application/json" \
-d '{"physicalDeviceId": ""}' \
"http://localhost:8090/ac-julink-warehouse/ getPublicKey"


curl -X POST -H "Content-Type:application/json" \
-d '{"majorDomainId": "11", "subDomainId" : "2"}' \
"http://localhost:8090/basic-data/getInfoTotal"


curl -X POST -H "Content-Type:application/json" \
-d '{"majorDomainId": "11", "subDomainId" : "2"}' \
"http://localhost:8090/basic-data/getDeviceBySubDomain"

curl -X POST -H "Content-Type:application/json" \
-d 'zzzz' \
"http://localhost:8090/ac-julink-warehouse/test"
